package cn.exrick.xboot.modules.Information.serviceimpl;

import cn.exrick.xboot.modules.Information.dao.mapper.RiverMapper;
import cn.exrick.xboot.modules.Information.entity.River;
import cn.exrick.xboot.modules.Information.entity.RiverTourHistory;
import cn.exrick.xboot.modules.Information.entity.WorkCondition;
import cn.exrick.xboot.modules.Information.service.IriverService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 河流信息接口实现
 * @author Lyg
 */
@Slf4j
@Service
@Transactional
public class IriverServiceImpl extends ServiceImpl<RiverMapper, River> implements IriverService {

    @Autowired
    private RiverMapper riverMapper;


    @Override
    public List<RiverTourHistory> findRiverPeople(Map<String, Object> param) {
        return riverMapper.findRiverPeople(param);
    }

    @Override
    public List<WorkCondition> getWorkConditionForm(Map<String, Object> map) {
        return riverMapper.getWorkConditionForm(map);
    }
}